﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using nERP.Model.Wms;
using nERP.Model;
using nERP.Model.So;
using nERP.Model.Bas;

namespace nERP.ViewModel.Wms.SaleReturnInWarehouseVMs
{
    public partial class SaleReturnInWarehouseTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._SaleReturnInWarehouse._SaleReturn")]
        public ExcelPropety SaleReturn_Excel = ExcelPropety.CreateProperty<SaleReturnInWarehouse>(x => x.SaleReturnId);
        [Display(Name = "_Model._SaleReturnInWarehouse._Sale")]
        public ExcelPropety Sale_Excel = ExcelPropety.CreateProperty<SaleReturnInWarehouse>(x => x.SaleId);
        [Display(Name = "_Model._SaleReturnInWarehouse._Customer")]
        public ExcelPropety Customer_Excel = ExcelPropety.CreateProperty<SaleReturnInWarehouse>(x => x.CustomerId);
        [Display(Name = "_Model._SaleReturnInWarehouse._SaleReturnInWarehouseCode")]
        public ExcelPropety SaleReturnInWarehouseCode_Excel = ExcelPropety.CreateProperty<SaleReturnInWarehouse>(x => x.SaleReturnInWarehouseCode);
        [Display(Name = "_Model._SaleReturnInWarehouse._InvoicesDate")]
        public ExcelPropety InvoicesDate_Excel = ExcelPropety.CreateProperty<SaleReturnInWarehouse>(x => x.InvoicesDate, true);
        [Display(Name = "_Model._SaleReturnInWarehouse._MakeUser")]
        public ExcelPropety MakeUser_Excel = ExcelPropety.CreateProperty<SaleReturnInWarehouse>(x => x.MakeUserId);
        [Display(Name = "_Model._SaleReturnInWarehouse._Status")]
        public ExcelPropety Status_Excel = ExcelPropety.CreateProperty<SaleReturnInWarehouse>(x => x.Status);
        [Display(Name = "_Model._SaleReturnInWarehouse._Remark")]
        public ExcelPropety Remark_Excel = ExcelPropety.CreateProperty<SaleReturnInWarehouse>(x => x.Remark);
        //[Display(Name = "_Model._SaleReturnInWarehouse._CreateTime")]
        //public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<SaleReturnInWarehouse>(x => x.CreateTime, true);
        //[Display(Name = "_Model._SaleReturnInWarehouse._UpdateTime")]
        //public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<SaleReturnInWarehouse>(x => x.UpdateTime, true);
        //[Display(Name = "_Model._SaleReturnInWarehouse._CreateBy")]
        //public ExcelPropety CreateBy_Excel = ExcelPropety.CreateProperty<SaleReturnInWarehouse>(x => x.CreateBy);
        //[Display(Name = "_Model._SaleReturnInWarehouse._UpdateBy")]
        //public ExcelPropety UpdateBy_Excel = ExcelPropety.CreateProperty<SaleReturnInWarehouse>(x => x.UpdateBy);
        //[Display(Name = "_Model._SaleReturnInWarehouse._IsValid")]
        //public ExcelPropety IsValid_Excel = ExcelPropety.CreateProperty<SaleReturnInWarehouse>(x => x.IsValid);
        //[Display(Name = "_Model._SaleReturnInWarehouse._TenantCode")]
        //public ExcelPropety TenantCode_Excel = ExcelPropety.CreateProperty<SaleReturnInWarehouse>(x => x.TenantCode);

	    protected override void InitVM()
        {
            

        }

    }

    public class SaleReturnInWarehouseImportVM : BaseImportVM<SaleReturnInWarehouseTemplateVM, SaleReturnInWarehouse>
    {
            //import

    }

}